from flask import Blueprint, request,jsonify
from mapper import userMapper
bp = Blueprint("user_api", __name__, url_prefix="/")

@bp.route("/test2")
def test2():
    user = userMapper.get_user_by_id(1)
    print(user.username)
    return jsonify({"code": 200, "message": "success", "data": user.to_dict()})
